import service from '@/utils/request'

// @Tags GameLive
// @Summary 创建GameLive
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameLive true "创建GameLive"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameLive/createGameLive [post]
export const createGameLive = (data) => {
  return service({
    url: '/gameLive/createGameLive',
    method: 'post',
    data
  })
}

// @Tags GameLive
// @Summary 删除GameLive
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameLive true "删除GameLive"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameLive/deleteGameLive [delete]
export const deleteGameLive = (data) => {
  return service({
    url: '/gameLive/deleteGameLive',
    method: 'delete',
    data
  })
}

// @Tags GameLive
// @Summary 删除GameLive
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除GameLive"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameLive/deleteGameLive [delete]
export const deleteGameLiveByIds = (data) => {
  return service({
    url: '/gameLive/deleteGameLiveByIds',
    method: 'delete',
    data
  })
}

// @Tags GameLive
// @Summary 更新GameLive
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameLive true "更新GameLive"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameLive/updateGameLive [put]
export const updateGameLive = (data) => {
  return service({
    url: '/gameLive/updateGameLive',
    method: 'put',
    data
  })
}

// @Tags GameLive
// @Summary 用id查询GameLive
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameLive true "用id查询GameLive"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameLive/findGameLive [get]
export const findGameLive = (params) => {
  return service({
    url: '/gameLive/findGameLive',
    method: 'get',
    params
  })
}

// @Tags GameLive
// @Summary 分页获取GameLive列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GameLive列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameLive/getGameLiveList [get]
export const getGameLiveList = (params) => {
  return service({
    url: '/gameLive/getGameLiveList',
    method: 'get',
    params
  })
}
